package com.example.houseitemmanagebackend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.houseitemmanagebackend.entity.Users;
import com.example.houseitemmanagebackend.mapper.UserMapper;
import com.example.houseitemmanagebackend.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, Users> implements UserService {

    @Override
    public Users getUserByUsername(String username) {
        return this.getOne(new QueryWrapper<Users>().eq("username", username));
    }
}